export function detailData(pid) {
  if(pid>5) {
    return {
      banners: [
        "/img/home/goods/goods" + pid + ".jpg",
      ],
      title: '【猫猫家】2021新款真皮复古小脏鞋女男做旧星星脏脏鞋小白鞋女鞋',
      desc: '啊实打实的克拉生的和卡拉时间ask多久啊是',
      newPrice: 88.00,
      oldPrice: 100.00,
      realPrice: 50.00,
      discount: 10,
      coulmns: 77,
      services: [],
    }
  }
  return {
    banners: [
      "/img/home/goods/goods" + pid + ".jpg",
    ],
    title: '【猫猫家】2021新款真皮复古小脏鞋女男做旧星星脏脏鞋小白鞋女鞋',
    desc: '啊实打实的克拉生的和卡拉时间ask多久啊是',
    newPrice: 999.00,
    oldPrice: 888.00,
    realPrice: 777.00,
    discount: 666,
    coulmns: 1580,
    services: [],
  }
}

export class GoodsInfo{
  constructor(itemInfo){
    this.title = itemInfo.title
    this.desc = itemInfo.desc
    this.newPrice = itemInfo.newPrice
    this.oldPrice = itemInfo.oldPrice
    this.discount = itemInfo.discount
    this.coulmns = itemInfo.coulmns
    this.services = itemInfo.services
    this.realPrice = itemInfo.realPrice
  }
}

export class ShopInfoData{
  constructor(){
    this.logo = '/img/profile/shopping.svg'
    this.name = '牛店'
    this.fans = 88
    this.sells = 99999
    this.score = ''
    this.goodsCount = 578
  }
}

export class CommentData{
  constructor(pid){
    this.avatvr = '/img/profile/avatar.svg'
    this.name = 'BK137'
    this.content = '判断商品的途径最好先去提问区问问买过的人商品怎么样，而且有些刷单的都会说自己是刷单，看到这种回答，最好换一家吧。因为回答的人是随机的，得到真实评论概率很大，当然，如果里面全是代购的，那您可以去买彩票了。'
    this.created = '2021-2-12'
    this.color = '白'
    this.size = 'M'
    this.imgs = [
      "/img/home/goods/goods" + pid + ".jpg",
      "/img/home/goods/goods2.jpg",
      "/img/home/goods/goods2.jpg",
      "/img/home/goods/goods2.jpg",
    ]
  }
}


